<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <Button text="按钮文字" @click="show"/>
  </div>
</template>

<script>
// @ is an alias to /src

import Button from '@/components/uc-button'

export default {
  name: 'Home',
  components: {
    Button
  },
  methods: {
    show (e) {
      console.log('父函数的自定义事件', e)
    }
  }
}
</script>
